//文件新建 src/hooks/useLoading.ts
import { ref } from 'vue'
export function useLoading() {
  const loading = ref<boolean>(false)
  const setLoading = (type: boolean) => {
    loading.value = type
  }
  return {
    setLoading,
    loading,
  }
}
